-
Notifications
You must be signed in to change notification settings - Fork 176
Split build.ts #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split build.ts #562
Conversation
commit: |
* @param nodeExternals Externals for the Node.js compilation. | ||
* @return The configuration and the build directory. | ||
*/ | ||
export async function compileOpenNextConfig( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an added function.
It calls the two existing function for Node and edge if needed.
The edge test has been moved to this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks
Thanks for your help @conico974 |
This will make it easier to reuse code (i.e. for opennext-cloudflare).
This PR is mainly moving code around.
I'll add inline comments for other differences to make the review easier.